<template>
    <div>
        <el-menu
                default-active="/index/index"
                class="el-menu-vertical-demo"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b"
                router
        >
            <el-menu-item index="/index/index">
                <i class="el-icon-location"></i>
                <span slot="title">首页</span>
            </el-menu-item>
            <el-submenu index="1">
                <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>商品管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/index/goods">零售商品列表</el-menu-item>
                    <el-menu-item index="/index/addGoods">新增零售商品</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
            <el-menu-item index="/index/staff">
                <i class="el-icon-menu"></i>
                <span slot="title">员工管理</span>
            </el-menu-item>
            <el-menu-item index="/index/order">
                <i class="el-icon-document"></i>
                <span slot="title">订单管理</span>
            </el-menu-item>
            <el-menu-item index="/index/user">
                <i class="el-icon-setting"></i>
                <span slot="title">用户管理</span>
            </el-menu-item>
            <el-menu-item index="/index/supplier">
                <i class="el-icon-setting"></i>
                <span slot="title">供应商管理</span>
            </el-menu-item>
        </el-menu>
    </div>
</template>

<script>
    export default {
        name: "LeftNav",
        methods: {

        }
    }
</script>

<style scoped>

</style>